import { createRouter, createWebHistory } from "vue-router";
import MyHome from "../views/MyHome.vue";
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      name: "home",
      component: MyHome,
    },
    {
      path: "/other",
      name: "other",
      component: () => import("../views/MyOther.vue"),
    },
  ],
  scrollBehavior(to, from, savedPosition) {
      return { top: 0 };
  },
});
export default router;
